package com.adarsh.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.adarsh.base.entity.BaseModel;

@Entity
@Table(name="TEAM")
public class Team implements Serializable, BaseModel {

	private static final long serialVersionUID = 3816149815014956401L;

	private long teamId;
	private String teamName;
	
	@Id 
	@GeneratedValue
	@Column(name="TEAM_ID")
	public long getTeamId() {
		return teamId;
	}
	public void setTeamId(long teamId) {
		this.teamId = teamId;
	}
	
	@Column(name="TEAM_NAME")
	public String getTeamName() {
		return teamName;
	}
	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}
	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("teamId: " + teamId);
		sb.append("teamName: " + teamName);
		return sb.toString();
	}
	
}
